package com.muqi.app.qlearn.modles;

import java.io.Serializable;

import org.json.JSONObject;

import com.google.gson.Gson;

public class GroupTeacherInfoCourseEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 * 教师课程列表
	 */
	public String id;
	public String classNO;
	public String userid;
	public String title;
	public String subject_id;
	public String now_price;
	public String student_count;
	public String class_method;
	public String class_address;
	public String enrol_status;
	public String class_time;
	public String type;
	public String registeredStudentCount;
	public String teacher_class_finished;
	public String student_class_finished;
	
	public String surplusStudentCount;
	
//	public String subject_name;
//	public String audit_status;
//	public String class_type;
	
	public static GroupTeacherInfoCourseEntity fromJson(JSONObject json) {
		if(json != null){
            return new Gson().fromJson(json.toString(),GroupTeacherInfoCourseEntity.class);
        }
		return null;
	}

	
//	   "id": "620",
//     "classNO": "1465702205218116",
//     "userid": "1504",
//     "title": "粤语",
//     "subject_id": "628",
//     "now_price": "122",
//     "student_count": "25",
//     "class_method": "1",
//     "class_address": "上海",
//     "enrol_status": "2",
//     "createtime": "2016-06-12 11:30:05",
//     "type": "2",
//     "teacher_class_finished": "n",
//     "student_class_finished": "n",
//     "subject_name": "方言学习"
	
	
	
	
	
	
	
	
//旧的数据
//    "id": "191",
//    "classNO": "1440415658804433",
//    "userid": "856",
//    "title": "小白托福写作特训营",  //标题
//    "subject_id": "611",
//    "now_price": "650", //售价
//    "class_type": "1",
//    "class_method": "2",    1线下 2在线
//    "class_address": "北京市朝阳区朝阳北路北京像素南区6号楼916",
//    "enrol_status": "1", // //1 正在招生(启用)，2停止招生（停用）                
//    "createtime": "2015-08-24 19:27:38",
//    "audit_status": "2", //审核状态 0待提交审核1待审核2审核通过3不通过
//    "subject_name": "TOEIC",  //课程分类名称
//	  "type": "2",  // 1一对一2班课

	
	
}
